package com.energy.analysis.comm.returnvalue;

public class HReturnUtil {

	public static boolean eq(ReturnCode returnCode1, ReturnCode returnCode2) {
		return returnCode1.getCode() == returnCode2.getCode();
	}

	public static <T> ReturnValue<T> creatSuccessful(T value) {
		ReturnValue<T> returnValue = new ReturnValue<T>(value);
		return returnValue;
	}

	public static ReturnValue<?> creatSuccessful() {
		return creatSuccessful(VoidValue.instance);
	}

}
